package org.example.domain;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

//@Data

@Component

@ConfigurationProperties("pethome.wechart")

public class WechartProperties {

    private String authorizationCodeUrl;

    private String userinfoUrl;

    private String refreshTokenUrl;
    private String tokenUrl;
    private String appId;

    private String appSecrect;

    private String redirectUri;

    public String getAuthorizationCodeUrl() {
        return authorizationCodeUrl;
    }

    public void setAuthorizationCodeUrl(String authorizationCodeUrl) {
        this.authorizationCodeUrl = authorizationCodeUrl;
    }

    public String getUserinfoUrl() {
        return userinfoUrl;
    }

    public void setUserinfoUrl(String userinfoUrl) {
        this.userinfoUrl = userinfoUrl;
    }

    public String getRefreshTokenUrl() {
        return refreshTokenUrl;
    }

    public void setRefreshTokenUrl(String refreshTokenUrl) {
        this.refreshTokenUrl = refreshTokenUrl;
    }

    public String getTokenUrl() {
        return tokenUrl;
    }

    public void setTokenUrl(String tokenUrl) {
        this.tokenUrl = tokenUrl;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getAppSecrect() {
        return appSecrect;
    }

    public void setAppSecrect(String appSecrect) {
        this.appSecrect = appSecrect;
    }

    public String getRedirectUri() {
        return redirectUri;
    }

    public void setRedirectUri(String redirectUri) {
        this.redirectUri = redirectUri;
    }

    @Override
    public String toString() {
        return "WechartProperties{" +
                "authorizationCodeUrl='" + authorizationCodeUrl + '\'' +
                ", userinfoUrl='" + userinfoUrl + '\'' +
                ", refreshTokenUrl='" + refreshTokenUrl + '\'' +
                ", tokenUrl='" + tokenUrl + '\'' +
                ", appId='" + appId + '\'' +
                ", appSecrect='" + appSecrect + '\'' +
                ", redirectUri='" + redirectUri + '\'' +
                '}';
    }
}